package com.cly.entity;

import com.cly.base.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;

/**
 * 课程表
 *
 * @author by 春风能解释
 * <p>
 * 2024-06-05
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@NoArgsConstructor
@Schema(name = "课程表", description = "课程表")
public class Course extends BaseEntity implements Serializable {
    /**
     * 序列化字段
     */
    @Serial
    private static final long serialVersionUID = -5744500437818292226L;
    /**
     * 课程名
     */
    @Schema(description = "课程名")
    private String name;
    /**
     * 描述
     */
    @Schema(description = "描述")
    private String description;
    /**
     * 课次
     */
    @Schema(description = "课次")
    private Integer number;
    /**
     * 海报
     */
    @Schema(description = "海报")
    private Long posters;
    /**
     * 科目ID
     */
    @Schema(description = "科目ID")
    private Long subjectId;
}